<?php
/**
 * This file is part of the n98-magerun2 project.
 *
 * For the full copyright and license information, please view the MIT-LICENSE.txt
 * file that was distributed with this source code.
 */

namespace N98\Magento\Command\Developer\Di\Preference;

use N98\Magento\Command\TestCase;

class ListCommandTest extends TestCase
{
    public function testGlobalList()
    {
        $this->assertDisplayContains(
            ['command' => 'dev:di:preferences:list', 'area' => 'global'],
            'Magento\Store\Api\Data\StoreInterface'
        );
    }

    public function testCrontabList()
    {
        $this->assertDisplayContains(
            ['command' => 'dev:di:preferences:list', 'area' => 'crontab'],
            'Magento\Backend\App\ConfigInterface'
        );
    }
}
